<?php


$list = array();
$return = array();
$return['code'] = 0;
$return['msg'] = '请求成功';
$return['count'] = 1000;
$page = $_GET['page'];
$limit = $_GET['limit'];
$start = ($page == 1) ? 0 : $page*$limit;
$end = $start+$limit;
for($i=$start; $i<=$end; $i++){
    $arr['id'] = 1000+$i;
    $arr['username'] = 'user-'.$i;
    $arr['sex'] = ($i%2) ? 1 : 2;
    $arr['state'] = ($i%2) ? 1 : 2;
    $arr['city'] = '城市-'.$i;
    $arr['sign'] = '签名-'.$i;
    $arr['experience'] = 200+$i;
    $arr['logins'] = 15+$i;
    $arr['wealth'] = 5842+$i;
    $arr['classify'] = "作家";
    $arr['score'] = 57+$i;
    array_push($list, $arr);
}
$return['data'] = $list;

echo json_encode($return);

